<%-- 
    Document   : index
    Created on : Oct 16, 2012, 10:31:31 PM
    Author     : DinhThang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>JSP Page</title>
            <link rel="stylesheet" type="text/css" href="/MantechHelpdesk/styles/style.css" />
        </head>
        <body>
            <jsp:include page="includes/incHeader.jsp" flush="false" />
            <h:form>
                <div style="color: red; text-align: center">
                    <h:messages /></div>
                <div id="loginpanel">
                    <h3>Login to helpdesk</h3>
                    <div class="login-rows">
                        <div class="login-row-1">Username</div>
                        <div class="login-row-2">
                            <h:inputText value="#{login.username}"  />
                        </div>
                    </div>
                    <div class="login-rows">
                        <div class="login-row-1">Password</div>
                        <div class="login-row-2">
                            <h:inputSecret value="#{login.password}"  />
                        </div>
                    </div>
                    <div class="login-rows">
                        <h:commandButton action="#{login.checkLogin}" value="Login"/>
                    </div>
                    <div class="login-rows">
                        <a href="#" target="_parent">Forgot your Password</a>
                    </div>
                </div>
            </h:form>
        </body>
    </html>
</f:view>